﻿<%@ Page Title="" Language="VB" MasterPageFile="~/Views/Shared/Report.Master" Inherits="System.Web.Mvc.ViewPage" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    AssetReport
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h1>
        Asset Report</h1>
    <br />
    <table class="data-table">
        <thead>
            <tr>
                <th>
                    Asset Name
                </th>
                <th>
                    Status
                </th>
                <th>
                    Barcode ID
                </th>
                <th>
                    Asset Type
                </th>
                <th>
                    Department
                </th>
                <th>
                    Model #
                </th>
                <th>
                    Serial #
                </th>
                <th>
                    Predefined Fields
                </th>
            </tr>
        </thead>
        <tbody>
            <% For Each item In ViewData("Assets")%>
            <tr>
                <td width="16%">
                    <%: item.AssetName%>
                </td>
                <td width="10%">
                    <%: item.Status%>
                </td>
                <td width="10%">
                    <%: item.AssetBarcodeID%>
                </td>
                <td width="10%">
                    <%: item.AssetType%>
                </td>
                <td width="10%">
                    <%: item.Department%>
                </td>
                <td width="10%">
                    <%: item.ModelNo%>
                </td>
                <td width="10%">
                    <%: item.SerialNo%>
                </td>
                <td width="24%">
                    <%= item.PredefinedFields.Replace(vbCrLf,"<BR />")%>
                </td>
            </tr>
            <% Next%>
        </tbody>
    </table>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="FormContent" runat="server">
    <%= Html.Hidden("AssetTypeID", ViewData("AssetTypeID"))%>
    <%= Html.Hidden("DepartmentID", ViewData("DepartmentID"))%>
    <%= Html.Hidden("SiteID", ViewData("SiteID"))%>
    <%= Html.Hidden("GroupID", ViewData("GroupID"))%>
    <%= Html.Hidden("StatusID", ViewData("StatusID"))%>
</asp:Content>
